/*
    数组形式参数演示
*/
#include <stdio.h>
void func(int arr[], int size) {
     int num = 0;
    for(num = 0; num <= size - 1; num++) {
	printf("%d ", arr[num]);
    }
    printf("\n");
}
int main() {
    int arr[] = {1,2,3,4,5,6,7};
    func(arr,5);
    return 0;
}
